package cn.kgm.template.dto.dto;

import cn.kgm.template.dto.base.TemplateEntity;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;import lombok.*;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.NotNull;

/**
 * # 技术改变自己 #
 * 活动模板配置表
 *
 * @author kapp-i
 * @date 2024-03-18 14:47:46
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TemplateConfigSaveDTO", description = "活动模板配置表")
public class TemplateConfigSaveDTO extends TemplateEntity<Long> {

    /**
     * 模板配置项
     */
    @ApiModelProperty(value = "模板配置项", position = 2)
    @NotNull(message = "模板配置项不能为空")
    private JSON templateConfig;

    /**
     * 0,未启用,1,启用
     */
    @ApiModelProperty(value = "0,未启用,1,启用", position = 4)
    @NotNull(message = "0,未启用,1,启用不能为空")
    private Integer status;

}
